<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            display: flex;
        }

        body>div {
            flex: 1;
            padding: 10px;
        }

        .input-group {
            margin-top: 10px;
        }
    </style>
</head>

<body>
    <div class="get">
        <h3>以get方式发送请求到/request/get</h3>
        <form action="/request/get" method="get">
            <div class="input-group">
                <label>
                    用户名:<input type="text" name="user">
                </label>
            </div>
            <div class="input-group">
                <label>
                    密&emsp;码:<input type="text" name="pwd">
                </label>
            </div>
            <div class="input-group">
                <input type="submit" value="提交">
            </div>
        </form>
    </div>
    <div class="post">
        <h3>以post方式发送请求到/request/post</h3>
        <form action="/request/post" method="post">
            <div class="input-group">
                <label>
                    用户名:<input type="text" name="user">
                </label>
            </div>
            <div class="input-group">
                <label>
                    密&emsp;码:<input type="text" name="pwd">
                </label>
            </div>
            <div class="input-group">
                <input type="submit" value="提交">
            </div>
        </form>
    </div>
</body>

</html>